/*
 *  Copyright 2010 UPF Telecos 4th group G.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */

package edu.upf.utils;

/**
 * <p>Definitions interface used as utility for final variables
 * </p>
 * @author     netjois
 */
public interface Definitions {

    /**
     * Default connection data
     */
    String DEFAULT_ACCOUNT="joseluis.grupog@gmail.com";
    String DEFAULT_PASS="gatoupfgroupg";
    String JMEDIA_RESOURCE="jMedia";
    String PLAIN_AUTH="PLAIN";
    int PLAIN_MECHANISM=0;
    int GENERIC_PORT=5222;
    String GTALK_SERVER="talk.google.com";
    String PROXY="gmail.com";
    String SERVER_EXTENSION="@gmail.com"; 
    
    /**
     * Default test message
     */
    String TEST_MSG="test";
    String TEST="test";
    int WAIT_CON_TIME=4000;

    /**
     * Payload property name on messages
     */
    String PAYLOAD="payload";

    /**
     * Default status message for logging
     */
    String OK="OK";
    String KO="KO";

    /**
     * Default 'mock' resource data
     */
    String IMAGE_NAME="jMedia_logo.png";
    int POSITION=0;
    String USER="all_users";
    String SIZE="500KB";
    String POPULARITY="5";
    String PATH="";

    /**
     * Search types and sybtypes name
     */
    String BASIC="basic";
    String NEWS="news";
    String CATEGORY="category";
    String IMAGE="image";
    String VIDEO="video";
    String ALL="all";
    String ARTICLE="article";
    String TITLE="title";
    String PARAGRAPH="paragraph";
    String SIMPLE="simple";
    String PLUS="plus";
    int FREE_TEXT_POS=0;


    /**
     * Default graphic user interface variables
     */
    int THUMBWIDTH=50;
    int THUMBHEIGHT=50;
    int RESULT_THUMB_COLUM=5;
    int RESULT_POPUL_COLUMN=3;
    int LIBRARY_THUMB_COLUM=4;
    int LIBRARY_POPUL_COLUMN=3;

    /**
     * Connection states
     */
    int LOGOUT_STATE=0;
    int LOGGING_STATE=1;
    int LOGGED_STATE=2;

    /**
     * Database related data and constant names
     */
    String DBUSER="admin";
    String QUERY_ACTION="^query.*";
    String ADD_ACTION="^add.*";
    String UPDATE_ACTION="^update.*";
    String XQUERY_SERVICE="XQueryService";
    String XQUERY_VERSION="1.0";
    String ADD_SERVICE="CollectionManagementService";
    String ADD_VERSION="1.0";
    String UPDATE_SERVICE="XQueryService";
    String UPDATE_VERSION="1.0";
    String IMAGE_RESULT=".*image.*";
    String VIDEO_RESULT=".*video.*";
    int DOCUMENT_INDEX=0;
    int COLLECTION_INDEX=1;

    String QUERY_IMAGE_BASIC="query.image.keyword";
    String QUERY_IMAGE_CATEGORY="query.image.category";
    String QUERY_IMAGE_CATEGORYPLUS="query.image.categoryplus";
    String QUERY_IMAGE_ARTICLE="query.image.article";
    String QUERY_IMAGE_TITLE="query.image.title";
    String QUERY_IMAGE_PARAGRAPH="query.image.paragraph";
    String QUERY_VIDEO_BASIC="query.video.keyword";
    String QUERY_VIDEO_CATEGORY="query.video.category";
    String QUERY_VIDEO_CATEGORYPLUS="query.video.categoryplus";
    String QUERY_VIDEO_ARTICLE="query.video.article";
    String QUERY_VIDEO_TITLE="query.video.title";
    String QUERY_VIDEO_PARAGRAPH="query.video.paragraph";
    
    String ADD_ALBUM="add.album.keyword";
    String ADD_IMAGE="add.image.keyword";
    String ADD_VIDEO="add.video.keyword";

    String UPDATE_IMAGE_TAGS="update.image.tags";
    String UPDATE_IMAGE_CATEGORY="update.image.category";
    String UPDATE_VIDEO_TAGS="update.video.tags";
    String UPDATE_VIDEO_CATEGORY="update.video.category";
    String UPDATE_IMAGE_PATH="update.image.path";
    String UPDATE_VIDEO_PARTH="update.video.path";

    String VLC_PATH="config.vlc.path";
    String SHARED_FOLDER="config.sharedfolder.path";
}
